package com.kun.pojo.entity;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * 结果实体类
 */
@ToString
@Getter
@Setter
@NoArgsConstructor
public class Result implements Serializable {
    private Boolean success;
    private String message;

    public Result(Boolean success, String message) {
        this.success = success;
        this.message = message;
    }

    public static Result success(String message) {
        return new Result(true, message);
    }


}
